﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResourceAdd.aspx.cs" Inherits="Invoicing.Resources.ResourceAdd" %>

<div class="pageContent">
    <form id="form1" method="post" action="AJAX/ResourceInfo.ashx" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
        <input type="hidden" name="action" value="add" />
        <div class="pageFormContent" layouth="70">
            <p>
               <label for="txtpWName">菜单名称：</label> 
                <input type="text" name="txtpWName" size="30" maxlength="50" class="required" alt="请输入名称" />
            </p>
            <p>
                <label for="txtpWPath">菜单路径：</label>
                <input type="text" name="txtpWPath" size="30" maxlength="50" class="required" alt="请输菜单路径" />
            </p>
            <p>
                <label for="potype">菜单类型：</label>
                <select name="potype" id="potype" class="combox">
                    <option value="1">数据操作</option>
                    <option value="2">统计查看</option>
                    <option value="3">资源访问</option>
                </select>

            </p>
            <p>
                <label>是否启用：</label>
                <input type="radio" name="pwstate" value="1" checked="checked" />启用
		        <input type="radio" name="pwstate" value="0" />禁用
            </p>
            <p>
                <label>是否根目录：</label>
                <input type="radio" name="pwisroot" value="1" />是
		        <input type="radio" name="pwisroot" value="0" checked="checked" />否

            </p>
            <p>
                <label>上级菜单：</label>
                <select class="combox" name="pwupid">
                    <option value="0">根目录</option>
                    <%
                        foreach ( System.Data.DataRow item in Dataitems.Rows)
                        {
 
                    %>
                     <option value="<%= item["po_id"].ToString() %>"><%= item["po_name"].ToString() %></option>

                    <%
                        }  
                    %>


                </select>

            </p>
            <p>
                <label>菜单介绍：</label>
                <textarea name="pwnote" cols="12" style="width: 200px"> </textarea>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>

